<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width = device-width, initial-scale = 1.0, minimum-scale = 1.0, maximum-scale = 1.0, user-scalable = no"/>
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="format-detection" content="telephone=no">
<meta name="keywords" content="" /> 
<meta name="description" content="" />
<title>广州虎门女装</title>
<link type="text/css" href="css/reset.css" rel="stylesheet" />
<link type="text/css" href="css/public.css" rel="stylesheet" />
<link type="text/css" href="css/style.css" rel="stylesheet" />
<link type="text/css" href="css/wode.css" rel="stylesheet" />
<script>
    var deviceWidth = Math.min(640, window.innerWidth)
    document.documentElement.style.fontSize = deviceWidth / 7.5 + "px"
</script>
 <script src="js/jquery-3.0.0.min.js"></script>
 <script src="js/core.js"></script>
</head>
<body>
<!-- top -->
<div class="shaixuan_header clearfix shangquan_quxiao">
			<a class="shaixuan_header_left" href="javascript:void(0);" onclick="querenquxiao()">取消</a>
			<!--<h1>商圈</h1>-->
			<a class="shaixuan_header_right" href="javascript:void(0);" onclick="querenquxiao()">确定</a>
		</div>
<!--热销排行-->
<div class="shaixuan_shangquan">
			<ul id="shangquan">
			</ul>
		</div>
</body>
   <script>
   	    shangquan();
   	    function shangquan(){
   	    	$.ajax({
             url: urlcore + "/api/tradeArea/selectList",
			type: "get",
			dataType: 'json',
			contentType: "application/json;charset=utf-8",
			success: function(data) {
				if(data.success == true) {
					  $.each(data.data,function(y,n){
		var shangquan='<li name="'+n.id+'" class="" onclick="shangquanid(this)">'+n.areaName+'</li>';
                        $("#shangquan").append(shangquan);	
					  });
				} else if(data.code == 'OVERTIME') {
					var thisUrl = window.location.href;
					//alert(thisUrl);
					if(thisUrl.indexOf('1.0.0denglu.html') <= -1) {
						top.window.location.href = "1.0.0denglu.html";
					}
				} else {
					if(data.msg != '空数据') {
						alert(data.msg)
					} else {
						$('#thiscount').text(0);
					}
				}
			},
			error: function() {
				alert("error");
			}
		});	
		
   	    }
   	    function shangquanid(te){
   	    	var sun=0;
   	    	$(".sq_curr").each(function(){
   	    	     	sun++;
   	    	});
   	    	
   	    	if(sun<3){
   	    	 if($(te).attr("class")==""){
   	    	  	 $(te).attr("class","sq_curr");
   	    	  }else{
   	    	  	 $(te).attr("class","");
   	    	  }
   	    	}else{
   	    		 $(te).attr("class","");
   	    	}
   	    }
   	    function fanhui(){
   	    	var suns=0;
   	    	var spri="";
   	    	$(".sq_curr").each(function(){
   	    		suns++;
   	    		if(suns==1){
   	    			spri+=$(this).attr("name")+":"+$(this).html();
   	    		}else if(suns==2){
   	    			spri+=","+$(this).attr("name")+":"+$(this).html();
   	    		}else if(suns==3){
   	    			spri+=","+$(this).attr("name")+":"+$(this).html();
   	    		}
   	    	});
   	    	sessionStorage.setItem("spri",spri);
   	    	
   	    }
   	
   </script>

</html>